package ShoppingCar;
public class ItemEntry {
        Commodity item;
        int piece;

        public ItemEntry(Commodity item) {
            this.item = item;
            piece = 1;
        }       



		public void increase() {
            piece++;
        }

        public Commodity getItem() {
			return item;
		}

		public void setItem(Commodity item) {
			this.item = item;
		}

		public int getPiece() {
			return piece;
		}

		public void setPiece(int piece) {
			this.piece = piece;
		}

		public void decrease() {
            piece--;
        }
        public String toString() {
            return "ItemEntry [item=" + item + ", piece=" + piece + "]";
        }

    }
